/**
 * 查询列表
 */
export const useLoadChuanYuanDiaoLingApi = (body)=>{
    return useHttpPost("/chuanyuandiaoling/list",{body})
}

/**
 * 保存修改
 */
export const useSaveUpdateChuanYuanDiaoLingApi = (body)=>{
    return useHttpPost("/chuanyuandiaoling/saveupdate",{body})
}

/**
 * 根据ID查询明细
 */
export const useGetChuanYuanDiaoLingApi = (id)=>{
    return useHttpPost("/chuanyuandiaoling/get/"+id,{})
}

/**
 * 删除
 */
export const useDelChuanYuanDiaoLingApi = (id)=>{
    return useHttpPost("/chuanyuandiaoling/del/"+id,{})
}

/**
 * 修改状态
 */
export const useUpdateStatusChuanYuanDiaoLingApi = (body)=>{
    body.field = C2B(body.field)
    return useHttpPost("/chuanyuandiaoling/update/status",{body})
}

/**
 * 审批
 */
export const useShenPiDiaoLingShenQingApi = (body)=>{
    return useHttpPost("/chuanyuandiaoling/shenpi",{body})
}


/**
 * 根据调配面板查询《调令》对应的职位及职位下的船员
 */
export const useGetDiaoLingChuanYuanApi = (id)=>{
    return useHttpPost("/chuanyuandiaopei/getDiaoLingChuanYuan/"+id,{})
}
